The DevOps 2.5 Toolkit by Viktor Farcic

The DevOps 2.5 Toolkit by Viktor Farcic

Author:Viktor Farcic [Viktor Farcic]
Language: eng
Format: epub
Tags: COM051440 - COMPUTERS / Software Development and Engineering / Tools, COM088000 - COMPUTERS / System Administration / General, COM051230 - COMPUTERS / Software Development and Engineering / General
Publisher: Packt
Published: 2019-11-28T05:48:17+00:00


Figure 3-43: Prometheus' graph screen with container memory usage limited to prometheus-server and grouped by the pod label extracted from pod_name

Now we can combine the two metrics and find out the discrepancy between the requested and the actual memory usage.

Please type the expression that follows, and press the Execute button.

1 sum(label_join( 2 container_memory_usage_bytes{ 3 container_name="prometheus-server" 4 }, 5 "pod", 6 ",", 7 "pod_name" 8 )) 9 by (pod) / 10 sum( 11 kube_pod_container_resource_requests_memory_bytes{ 12 container="prometheus-server" 13 } 14 ) 15 by (pod)

In my case (screenshot following), the discrepancy was becoming gradually smaller. It started somewhere around sixty percent, and now it's approximately seventy-five percent. Such a difference is not big enough for us to take any corrective action.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.